home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / hypercrd / hc2_x / tcprogud.sit / TC Prog Guide / card_18573.txt < prev    next >
Text File  |  1991-02-27  |  641b  |  18 lines

  1. -- card: 18573 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 4755
  5. -- name: 
  6.  
  7.  
  8. -- part contents for background part 4
  9. ----- text -----
  10.     void    Student::set(void)
  11.  
  12. Notice that the overriding method must have the same type of arguments and return value as the inherited method.
  13.  
  14. The Student set() method definition assigns the id_number instance variable using the same approach as was used by the Person set() method to assign its instance variables.  The following page demonstrates how the age and weight instance variables of a Student object can be set.
  15.  
  16. -- part contents for background part 7
  17. ----- text -----
  18. 45